package com.fintech.third.edczxutil.style;

import java.util.ArrayList;
import java.util.List;

public class StyleElement {

	private String title;
	
	private String type;
	
	private String value;
	
	private String bean;
	
	List<StyleField> fields;
	
	List<StyleElement> elements;
	
	public void addField(StyleField field){
		if(this.fields==null){
			this.fields=new ArrayList<>();
		}
		this.fields.add(field);
	}
	
	public void addElement(StyleElement element){
		if(this.elements == null){
			elements=new ArrayList<>();
		}
		this.elements.add(element);
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getBean() {
		return bean;
	}

	public void setBean(String bean) {
		this.bean = bean;
	}

	public List<StyleField> getFields() {
		return fields;
	}

	public void setFields(List<StyleField> fields) {
		this.fields = fields;
	}

	public List<StyleElement> getElements() {
		return elements;
	}

	public void setElements(List<StyleElement> elements) {
		this.elements = elements;
	}

	@Override
	public String toString() {
		return "StyleElement [title=" + title + ", type=" + type + ", value=" + value + ", bean=" + bean + ", fields="
				+ fields + ", elements=" + elements + "]";
	}
	
}
